package org.kjtc.service;

import org.kjtc.entity.UserInfo;
import org.kjtc.mapper.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/11/30 0030.
 */
@Service
public class LoginService {

    @Autowired
    private LoginMapper loginMapper;

    public List<UserInfo> toIndex(String userName){
        List<UserInfo> lists=loginMapper.toIndex(userName);
        return lists;
    }
}
